package org.example.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.user.domain.RoleMenu;
import org.example.user.service.RoleMenuService;
import org.example.user.mapper.RoleMenuMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author scf
* @description 针对表【sys_role_menu】的数据库操作Service实现
* @createDate 2024-05-22 20:05:22
*/
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu>
    implements RoleMenuService{


    @Override
    public List<Integer> getMenuIdByRoleId(Integer id) {
        return baseMapper.getMenuIdByRoleId(id);
    }

    @Override
    public List<Integer> getByRoleId(Integer id) {
        return baseMapper.getByRoleId(id);
    }
}




